package com.zbkj.service.service;

import com.zbkj.common.request.PageParamRequest;
import com.zbkj.common.model.agent.CommunityStatRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zbkj.common.request.CommunityStatRecordSaveRequest;
import com.zbkj.common.request.CommunityStatRecordSearchRequest;
import com.zbkj.common.response.CommunityStatRecordDetailResponse;
import com.zbkj.common.response.CommunityStatRecordPageDataResponse;

import java.util.List;
/**
* @author Caiyc
* @description CommunityStatRecordService 接口
* @date 2025-07-21
*/
public interface CommunityStatRecordService extends IService<CommunityStatRecord> {

    Boolean create(CommunityStatRecordSaveRequest communityStatRecordSaveRequest);

    /**
     * 分页查询小区分红统计排名表
     * @param request 查询条件
     * @param pageParamRequest 分页对行
     * @return 查询结果
     */
    List<CommunityStatRecordPageDataResponse> getList(CommunityStatRecordSearchRequest request, PageParamRequest pageParamRequest);

    /**
    * 修改小区分红统计排名表
    * @param communityStatRecordRequest
    * @return
    */
    boolean update(CommunityStatRecordSaveRequest communityStatRecordRequest);

    /**
    * 批量删除
    * @param idList
    * @return
    */
    boolean batchDelete(List<Integer> idList);

    /**
    * 查询溯源套餐表详情
    * @param id
    * @return
    */
    CommunityStatRecordDetailResponse getDetails(Integer id);

    List<CommunityStatRecord> getRankingList(Integer statId);
}